package com.sptpc.learnspring.service;

import com.sptpc.learnspring.model.Drink;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;
import java.util.Optional;

public interface IDrinkService {
    List<Drink> getAllDrinks();
    Drink addNewDrink(Drink drink);
    Optional<Drink> getDrinkById(Long id);
    List<Drink> searchDrinksByKey(String key);
    List<Drink> searchDrinksByCategory(Long cid);
    List<Drink> getDrinkByIds(List<Long> ids);

    Drink getDrinkById2(Long id);

    Page<Drink> getAllDrinks2(PageRequest page);

    List<Drink> batchAddDrinks(List<Drink> drinks);
}
